package com.woniuxy.woniuticket.moviemodule.service.impl;

import com.woniuxy.woniuticket.moviemodule.dao.CinemaLoginDAO;
import com.woniuxy.woniuticket.moviemodule.service.AdminService;
import com.woniuxy.woniuticket.pojo.CinemaLogin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by 赵晓东 on 2019/6/18/018.
 */
@Service
public class AdminServiceImpl implements AdminService {
    @Resource
    private CinemaLoginDAO cinemaLoginDAO;
    @Override
    public CinemaLogin login(String account) {
        return cinemaLoginDAO.selectByAccount(account);
    }

    @Override
    public int update(CinemaLogin cinemaLogin) {
        return  cinemaLoginDAO.updateByPrimaryKeySelective(cinemaLogin);
    }
}
